package com.beidu.lottery.call.entity.dto;

import com.beidu.lottery.call.entity.mq.ActivityBaseDTO;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 投票活动DTO
 *
 * @author 北渡
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ActivityVoteDTO extends ActivityBaseDTO {

    /**
     * 活动ID
     */
    @NotNull(message = "活动ID不能为空")
    private Integer activityId;

    /**
     * 分组ID
     */
    @NotNull(message = "分组ID不能为空")
    private Integer groupId;

    /**
     * 选项ID
     */
    @NotNull(message = "投票选项ID不能为空")
    private Integer optionId;

}
